<?php

use App\Models\Group;
use Illuminate\Database\Seeder;

class GroupSeeder extends Seeder
{

    public function run()
    {

        $groups = [
            ['title' => '普通用户'],
            ['title' => 'VIP', 'days' => 180]
        ];
        collect($groups)->map(function ($group) {
            Group::create($group);
        });

//        collect($groups)->map(function($group){
//            Group::create($group);
//        })
    }
}
